<div class="order_detail">
<div class="w1">
    <h2>订单详情</h2>
    <table class="table">
    <{foreach item=list from=$log}>
    <tr class="tr">
        <td width="80"><{$list.create_time|date_format:"%Y-%m-%d&nbsp;%H:%M:%S"}></td>
        <td><{$list.text}></td>
    </tr>
    <{/foreach}>
    </table>
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">订单信息</th>
            </tr>
        </thead>
        <tbody>
        <tr class="tr">
            <td width="50">订单编号</td>
            <td width="150"><{$de.order_id}></td>
            <td width="50">订单状态</td>
            <td width="100"><b class="org"><{$de.statu_text}></b></td>
            <td width="50">支付状态</td>
            <td width="150"><b><{$de.order_pay_status}></b></td>
            <td width="50">配送状态</td>
            <td><b><{$de.order_ship_status}></b></td>
        </tr>
        <tr class="tr">
            <td>支付方式</td>
            <td><{$de.payment_name}></td>
             <{if $de.shipping_id ==0}>
                <{if !empty($de.pick_name)}>
            <td>配送方式</td>
            <td colspan="99">上门自取</td>
              <{/if}>
          <{else}>
            <td>配送方式</td>
            <td colspan="99"><{$de.shipping_name}></td>
             <{/if}>
        </tr>
        </tbody>
    </table>
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="4">物流信息</th>
            </tr>
        </thead>
        <tbody>
        <{if !empty($de.shipping_company)}>
        <tr class="tr">
            <td>快递公司</td>
            <td><{$de.shipping_company}></td>
            <td>运单号</td>
            <td><{$de.shipping_no}></td>
        </tr>
        <{/if}>
        <tr class="tr" colspan="4">
            <td> <a href="http://m.kuaidi100.com/index_all.html?postid=<{$de.shipping_no}>" >查看物流信息</a></td>
        </tr>
         <!--<tr>   -->
            <!--<td width="80"></td>-->
            <!--<td colspan="3"><script src="<{$config.weburl}>/api/logistic.php?com=<{$de.shipping_name}>&nu=<{$de.shipping_no}>"></script></td>-->
        <!--</tr>-->
        </tbody>
    </table>
    <table class="table alc">    
        <thead>
            <tr>
                <th class="partition" colspan="99">产品信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <!--<td class="al" width="80">编号</td>-->
                <td class="al">产品</td>
                <td width="100">场馆名称</td>
                <td width="200">座位</td>
                <td width="80">演出日期</td>
                <td width="50">单价</td>
                <td width="50">数量</td>
                <td width="50">总价</td>
            </tr>
            <{foreach item=list from=$de.product}>
            <tr>
                <!--<td class="al"><{$list.code}></td>-->
                <td class="al <{if $list.service}>npb<{/if}>">
                    <a target="_blank" href="index.php?m=product&s=detail&id=<{$list.product_id}>">
                        <{$list.name}>
                    </a>
                </td>
                <td><{$list.spot_id|get_spot_name}></td>
                <td>
                    <{if !empty($list.ticket_seat)}>
                    <{foreach item=vo from=$list.ticket_seat key=k}>
                    <{$vo.seat}><br/>
                    <{/foreach}>
                    <{else}>
                    择优分配
                    <{/if}>
                </td>
                <td><{$list.per_date|date_format:"%Y-%m-%d"}></td>
                <td <{if $list.service}>class="npb"<{/if}>><{$config.money}><{$list.price|number_format:2}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>>x<{$list.num}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>><{$config.money}><{$list.sum|number_format:2}></td>
            </tr>
            <{if $list.product_give}>
            <tr class="product_give">
                <td class="al">赠品</td>
                <td class="al">
                    <{foreach item=slist from=$list.product_give}>
                        <p><{$slist.pname}></p>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{if $list.service}>
            <tr class="other">
                <td class="al">服务</td>
                <td class="al">
                    <{foreach item=slist from=$list.service}>
                        <p><{$slist.name}></p>
                    <{/foreach}>
                </td>
                <td>
                    <{foreach item=slist from=$list.service}>
                        <p><{$config.money}><{$slist.price}></p>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{/foreach}>
            <tr>
                <td colspan="99" align="right" class="pr20">
                <!--商品重量: <{$de.weight}>kg &nbsp;&nbsp;-->
                商品总金额: <{$config.money}><{$de.cost}>&nbsp;&nbsp;
                配送费用: <{$config.money}><{$de.freight}>&nbsp;&nbsp;
                    积分抵扣金额: <{$config.money}><{if $de.cost_point > 0 }><{$de.cost_point}> <{else}> 0.00 <{/if}> &nbsp;&nbsp;
                订单总金额: <b class="red"><{$config.money}><{$de.freight+$de.cost}></b>
                </td>
            </tr>
            <{if $des}>
            <tr>
                <td class="al" colspan="99">备注: <{$de.des}></td>
            </tr>
            <{/if}>
        </tbody>
    </table>
     <{if $de.shipping_id !=0}>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">收货地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">收货人</td>
                <td><{$de.ship_name}></td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><{$de.ship_mobile}> <{$de.ship_tel}></td>
            </tr>
            <tr>
                <td>收货地址</td>
                <td><{$de.provinceid|getdistrictname}> <{$de.cityid|getdistrictname}> <{$de.areaid|getdistrictname}> <{$de.ship_addr}></td>
            </tr>
        </tbody>
    </table>

     <{else}>

      <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">取票地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">取票人</td>
                <td><{$de.pick_name}></td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><{$de.pick_mobile}></td>
            </tr>
            <tr>
                <td>取票城市</td>
                <td><{$de.pick_provinceid|get_pick_city_name}></td>
            </tr>
              <tr>
                <td>取票地址</td>
                <td><{$de.pick_addr}></td>
            </tr>
        </tbody>
    </table>


      <{/if}>

    <{if $de.invoice_type > 0}>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">发票信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">发票信息</td>
                <td>普通发票</td>
            </tr>

            <tr>
                <td>发票抬头</td>
                <td><{$de.invoice_company}></td>
            </tr>
            <tr>
                <td>寄票地址：</td>
                <td><{$de.invoice_addr}></td>
            </tr>
        </tbody>
    </table>
    <{/if}>

    <{if !empty($de.real_user_name)}>
    <table class="table">
        <thead>
        <tr>
            <th class="partition" colspan="99">实名信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td width="100">姓名</td>
            <td><{$de.real_user_name}></td>
        </tr>
        <tr>
            <td>证件类型</td>
            <td>
                <{if $de.real_card_type == 1}>
                身份证
                <{else}>
                护照
                <{/if}>
            </td>
        </tr>
        <tr>
            <td>证件号码</td>
            <td><{$de.real_card_no}></td>
        </tr>
        </tbody>
    </table>
    <{/if}>

</div>
</div>
